package org.middleware.service.system;

import org.middleware.dao.system.SysRolesDao;
import org.middleware.entity.system.SysRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhiqiangwu
 * @description 针对表【sys_roles(角色表)】的数据库操作Service
 * @createDate 2025-09-05 16:40:01
 */
@Service
public class SysRolesService {

    @Autowired
    private SysRolesDao rolesDao;

    public List<SysRoles> searchRoles() {
        return rolesDao.searchRoles();
    }

    public int insert(SysRoles role) {
        return rolesDao.insert(role);
    }

    public int update(SysRoles role) {
        return rolesDao.update(role);
    }

    public int delete(int id) {
        return rolesDao.delete(id);
    }

}
